<template>
  <div class="global-monitor">
    <div class="menus">
      <div class="menu-item">
        <div class="item-title">机房</div>
        <div class="item">主机</div>
      </div>
      <div class="menu-item">
        <div class="item-title">网络</div>
        <div class="item">cdn</div>
        <div class="item">主域名</div>
      </div>
      <div class="menu-item">
        <div class="item-title">前台</div>
        <div class="item">静态资源</div>
        <div class="item">接口响应</div>
        <div class="item">js报错</div>
      </div>
      <div class="menu-item">
        <div class="item-title">主要页面</div>
        <div class="item">页面监控</div>
      </div>
    </div>
    <div class="content">
      <div class="process"></div>
      <div class="desc">
        <div class="desc-title">全局监控流程图</div>
        <ul>
          <li class="desc-item">- 支持自定义监控类型</li>
          <li class="desc-item">- 支持自定义监控类型</li>
          <li class="desc-item">- 支持自定义监控类型</li>
          <li class="desc-item">- 支持自定义监控类型</li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  setup() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.global-monitor {
  height: 100%;
  display: flex;
  justify-content: space-between;
  > div {
    height: 100%;
  }
  .menus {
    width: 250px;
    margin-right: 15px;
    border: 1px solid #eee;
    padding: 15px;
    .menu-item {
      margin-bottom: 20px;
      .item-title {
        font-size: 16px;
        margin-bottom: 5px;
      }
      .item {
        font-size: 14px;
        color: #666;
        height: 40px;
        border: 1px solid #eee;
        background: #e6e6e6;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 5px;
        cursor: pointer;
        user-select: none;
      }
    }
  }
  .content {
    flex: 1 0 0;
    display: flex;
    justify-content: space-between;
    border: 1px solid #eee;
    .desc {
      width: 200px;
      border-left: 1px solid #eee;
      box-sizing: border-box;
      padding: 10px;
      .desc-title {
        font-size: 14px;
        margin-bottom: 8px;
      }
      .desc-item {
        font-size: 12px;
        color: #666;
        line-height: 20px;
      }
    }
    .process {
      flex: 100;
    }
  }
}
</style>
